{volist name="data" id="vo"}
    <li style="float:left;padding-left:10px;position: relative">
        <a href="{:url('admin/templateshop/index',['catid'=>$vo['diyname']])}" {if ($catid==$vo['diyname'])} style="color: #333333"{/if}>{$vo.name}</a>

        {if (!empty($vo['child_arr']))}
        <span class="showul"><i class="fa fa-toggle-down"></i></span>
        <ul class="sonul">
            {volist name="$vo['child_arr']" id="vv"}
            <li><a href="{:url('admin/templateshop/index',['catid'=>$vv['diyname']])}">{$vv.name}</a></li>
            {/volist}
        </ul>
        {/if}
    </li>
{/volist}